package com.eedi.framework.logger.framework.logger;

import com.eedi.framework.apilog.core.service.ApiErrorLog;
import com.eedi.framework.apilog.core.service.ApiErrorLogFrameworkService;
import com.eedi.framework.logger.service.SysOperateLogService;
import com.eedi.framework.logger.convert.SysOperateLogConvert;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ApiErrorLogFrameworkServiceImpl implements ApiErrorLogFrameworkService {
    @Resource
    SysOperateLogService sysOperateLogService;
    @Override
    public void createApiErrorLog(ApiErrorLog apiErrorLog) {
        sysOperateLogService.createOperateLog(
                SysOperateLogConvert.INSTANCE.convert(apiErrorLog)
        );
    }
}
